package com.zhiyou.crowdfunding.service;

import com.zhiyou.crowdfunding.bean.User;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jyf
 * @since 2022-05-27
 */
public interface UserService{


    /**
     * add
     */
    User addUser(User user);


    /**
     * delete
     */
    Integer deleteUserById(Integer id);


    /**
     * update
     */
    Integer updateUserById(User user);

    /**
     * selectOne
     */
    User selectOneUserById(Integer id);

    /**
     * selectAll
     * 根据条件
     */
    List<User> selectAllUserByConditionws(String ziduan ,String condition);


    /**
     * selectAll
     */
    List<User> selectAllUsers();
    User getUserByUsname(String usName);

}
